package com.pylc.model.dao;

import com.pylc.model.entity.Area;

import java.util.Set;

/**
 * @author Lindsey
 */
public interface AreaDao extends BaseDao<Area, Long> {

    public Set<Area> getRoot();


    public Area getParent(Area area);


    public Set<Area> getChildren(Area area);


    public Boolean isNameUnique(Long parentId, String name);

}

